package com.yxj.threadcase1;

public class MyThread4 extends Thread{
    @Override
    public void run() {
        for(int i = 0; i< 100; i++) {
            try {
                Thread.sleep(1000);
            }catch(InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(getName()+"@"+i);
        }
    }

    public MyThread4() {
    }

    public MyThread4(String name) {
        super(name);
    }
}
